package org.frank.blockchain.domain;

import lombok.Data;
import org.frank.blockchain.enums.CommandType;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

@Data
public class Command {
    String requestId = UUID.randomUUID().toString();
    CommandType type;
    String className;
    String methodName;
    List<Object> args = new ArrayList<Object>();

    public Object data;
    public Boolean success;
    public Integer code;
    public String errorMessage;
}
